import { request } from "@/api-services/request";
import { SearchRequest, SearchResult } from "../models";

export default {
  Search(data: SearchRequest) {
    return request.post<SearchResult>("/Wallhaven/Search", data);
  },
  Download(url: string) {
    return request.get<string>(`/Wallhaven/Download?url=${url}`);
  },
};
